Is the file descriptor that has to be duplicated 要復(fù)制的文件描述符。
With mode " w b " to transform the file descriptor into a file ,將文件描述符轉(zhuǎn)換為一個file * 。
It will not work with c library functions that expect a file descriptor , such as 它無法與需要文件描述符的c庫函數(shù)(如
You can then continue to access it within your program by passing around the file descriptor 于是,您就可以在自己的程序中通過傳送文件描述符來訪問該文件。
Visual basic 6 . 0 and earlier versions write the file descriptor for a dynamic array but not for a fixed - size array Visual basic 6 . 0及較早版本寫入動態(tài)數(shù)組(而不是固定大小數(shù)組)的文件說明符。
It also decreases the likelihood that a maintainer will insecurely use the file name they need to use the file descriptor instead 它還降低了維護者不安全地使用文件名的可能性(改為使用文件描述符) 。
In an ideal world , developers would be able to make minor modifications to a program , simply adding code to initialize the ssl context from a file descriptor 理想情況下,開發(fā)者能夠?qū)Τ绦蜻M行較小的修改,只需添加一些代碼從文件描述符初始化ssl上下文即可。
System call returns the new file descriptor . dup2 , meanwhile , duplicates the file descriptor onto the passed in file descriptor 在linux中, dup可以實現(xiàn)相同的功能: dup ( )系統(tǒng)調(diào)用返回一個新的文件描述符;而dup2 ( )則復(fù)制在文件描述符參數(shù)中傳遞進來的文件描述符:
Ing the file immediately after creation so the directory entry goes away , but the file itself remains accessible until the last file descriptor pointing to it is closed 該文件,以便在清除目錄條目的同時仍然可以訪問該文件,直到指向它的最后一個文件描述符被關(guān)閉。
Problem . to resolve this , once you create a temporary file atomically , you must always use the file descriptor or file stream you got when you opened the file 解決這種問題的方法是,一旦自動創(chuàng)建了一個臨時文件,就必須始終使用打開該文件時得到的文件描述符或文件流。